package com.jdz.gxq.info.admin.project.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.project.bo.BuildingProject;

public interface BuildingProjectService {
	
	/**
	 * BuildingProject检索分页用，查询记录条数
	 * @return
	 */
	public int getBuildingProjectsCount(String projectName);
	
	/**
	 * BuildingProject检索
	 * @return
	 */
	public List<BuildingProject> getBuildingProjects(Map<String, Object> params);
	
	/**
	 * 追加BuildingProject
	 * @param buildingProject
	 */
	public void insertBuildingProject(BuildingProject buildingProject);
	
	/**
	 * 更新BuildingProject
	 * @param buildingProject
	 */
	public void updateBuildingProject(BuildingProject buildingProject);
	
	/**
	 * 通过id得到buildingProject
	 * @param id
	 * @return
	 */
	public BuildingProject getBuildingProjectById(int projectId);
	
	/**
	 * 删除BuildingProject
	 * @param buildingProject
	 */
	public void deleteBuildingProject(BuildingProject buildingProject);
	
	/**
	 * 验证buildingProjectName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkBuildingProjectName(BuildingProject paramBuildingProject, int flag);

}
